package com.wwx.worldonwheels.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import java.io.Serializable;
@Data
@AllArgsConstructor
public class WwxCustomer implements Serializable {
    private Integer custId;

    private String addrStreet;

    private String addrCity;

    private Integer addrZip;

    private String addrCountry;

    private String email;

    private String phone;

    private String custType;

    private String password;

    private static final long serialVersionUID = 1L;

    public WwxCustomer(String phone, String password) {
        this.phone=phone;
        this.password=password;
    }

    public Integer getCustId() {
        return custId;
    }

    public void setCustId(Integer custId) {
        this.custId = custId;
    }

    public String getAddrStreet() {
        return addrStreet;
    }

    public void setAddrStreet(String addrStreet) {
        this.addrStreet = addrStreet;
    }

    public String getAddrCity() {
        return addrCity;
    }

    public void setAddrCity(String addrCity) {
        this.addrCity = addrCity;
    }

    public Integer getAddrZip() {
        return addrZip;
    }

    public void setAddrZip(Integer addrZip) {
        this.addrZip = addrZip;
    }

    public String getAddrCountry() {
        return addrCountry;
    }

    public void setAddrCountry(String addrCountry) {
        this.addrCountry = addrCountry;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCustType() {
        return custType;
    }

    public void setCustType(String custType) {
        this.custType = custType;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", custId=").append(custId);
        sb.append(", addrStreet=").append(addrStreet);
        sb.append(", addrCity=").append(addrCity);
        sb.append(", addrZip=").append(addrZip);
        sb.append(", addrCountry=").append(addrCountry);
        sb.append(", email=").append(email);
        sb.append(", phone=").append(phone);
        sb.append(", custType=").append(custType);
        sb.append(", password=").append(password);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}